package com.webside.videoresource.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.webside.base.basemapper.BaseMapper;
import com.webside.util.PageUtil;
import com.webside.videoresource.model.VideoResourceEntity;;

public interface VideoResourceMapper extends BaseMapper<VideoResourceEntity, Long>{
	/**
	 * 查询权限树集合
	 * @param parameter 参数中必须包含roleId,其他参数可参考mapping文件
	 * @return
	 */
    // public List<VideoResourceEntity> queryVideoResourceList(Map<String, Object> parameter);
    //添加
    public int insert(VideoResourceEntity videoResource);
    //修改
    public int update(VideoResourceEntity videoResource);
    //刪除
    public int deleteBatchById(List<Long> videoIds); 
    //查询全部
    public List<VideoResourceEntity>selectall(@Param("count")int count,@Param("sort")String sort);
    //根据条件查询
    public List<VideoResourceEntity>findListByName(@Param("page")PageUtil pageUtil,@Param("sort")String sort);
}